function show_patterns()

load patterns;

figure1 = figure('XVisual','0x24 (TrueColor, depth 24, RGB mask 0xff0000 0xff00 0x00ff)');

axes1 = axes('Parent', figure1, 'FontSize', 11);
xlim(axes1, [-3.5 3.5]);
ylim(axes1, [-3.5 3.5]);
box(axes1, 'on');
hold(axes1, 'all');

plot(axes1, patterns{1}(2,:), patterns{1}(3,:), '.', 'color', 'b');
plot(axes1, patterns{2}(2,:), patterns{2}(3,:), '.', 'color', 'r');

xlabel(axes1, 'X_{1}');
ylabel(axes1, 'X_{2}');

figure2 = figure('XVisual', '0x24 (TrueColor, depth 24, RGB mask 0xff0000 0xff00 0x00ff)');

axes2 = axes('Parent', figure2, 'YGrid', 'on', 'XGrid', 'on', 'FontSize', 11);

xlim(axes2, [-3 3.2]);
ylim(axes2, [-3.2 3]);
zlim(axes2, [-1.5 1.5]);
hold(axes2, 'all');

patx = [patterns{1}(2,:), patterns{2}(2,:)];
paty = [patterns{1}(3,:), patterns{2}(3,:)];
patz = [patterns{1}(4,:), patterns{2}(4,:)];

plot3(axes2, patx, paty, patz, '.');

xlabel('X_{1}', 'HorizontalAlignment', 'right');
ylabel('X_{2}', 'HorizontalAlignment', 'left');
zlabel('Z');

